<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i>管理员管理 <span class="c-gray en">&gt;</span> <a href="{:url('admin/index')}">管理员列表</a> {:refresh()}</nav>
<div class="page-container">
<div class="cl mt-d20"> <span class="l"> <a class="btn btn-primary radius"  href="{:url('admin/add')}"><i class="Hui-iconfont">&#xe600;</i> 添加管理员</a></span> <span class="r"></span> </div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="80">ID</th>
					<th width="80">用户名</th>
					<th width="80">真实姓名</th>
					<th width="100">联系电话</th>
					<th width="100">电子邮箱</th>
					<th width="60">最后登录时间</th>
					<th width="60">是否为超级管理员</th>
					<th width="60">状态</th>
					<th width="60">操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="admin" id="vo"}
				<tr class="text-c">
					<td>{$vo.id}</td>
					<td>{$vo.username}</td>
					<td>{$vo.realname}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.email}</td>
					<td>{$vo.last_login_time|date='Y-m-d H:i:s',###}</td>
					<td>{$vo.is_super==1?'是':'否'}</td>
					<td class="td-status">{$vo.status|status}</td>
					<td class="td-manage">
						{if condition="$isSuper==1"}
						<a style="text-decoration:none" class="ml-5" onClick="" href="{:url('admin/edit',['id'=>$vo.id])}" title="查看"><i class="Hui-iconfont">&#xe6df;</i></a>
						<a style="text-decoration:none" class="ml-5" onClick="o2o_stop('{:url('base/status',['id'=>$vo.id,'status'=>0,'model'=>'Admin'])}')" href="javascript:;" title="恢复停用">停用</a>
						<a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('base/status',['id'=>$vo.id,'status'=>-1,'model'=>'Admin'])}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
						{/if}


					</td>
				</tr>
				{/volist}
			</tbody>
		</table>
	</div>
</div>
{:pagination($admin)}
<!--包含头部文件-->
{include file="public/footer" /}
